<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
	  $("button").click(function(){
		  var request =  $.ajax({
			  url: "demo_test.txt",
			  cache: false
			});
		  
		  request.done(function(html) {
			  $("#div1").replaceWith(html);
		  });
		  
		  request.fail(function(jqXHR, textStatus) {
			  alert( "Request failed: " + textStatus );
		  });
		  
	  });
});
</script>
</head>
<body>
<h4>
The jQuery XMLHttpRequest (jqXHR) object returned by $.ajax() is a superset of the browser's native XMLHttpRequest object.
</h4>
<div id="div1"><h2>Let jQuery AJAX Change This Text</h2></div>
<button>Get External Content</button>

</body>
</html>